package com.atguigu.java4;

public class BankTest {
		public static void main(String[] args) {
				
				Bank bank = new  Bank();
				
				//输入用户姓名
				bank.addCustomer("Jane", "Smith");
				
				//用户存钱
				bank.getCustomer(0).setAccount(new Account1(2000));
				//用户取钱
				bank.getCustomer(0).getAccount().withdraw(500);
				
				//查询余额
				double  balance = bank.getCustomer(0).getAccount().getBalance();
				
				//输出余额
				System.out.println("账户余额剩余：" + balance + "元");
				}
}
